import { createStore } from 'vuex'

import service from '../util/request'

export default createStore({
  state: {
    hw: 'vuex hello world',
  },
  mutations: {},
  actions: {
    getAllTodo(state, commit) {
      service.get('/todo').then((res) => {
        console.log(res)
      })
    },
  },
  modules: {},
})
